package com.dyw.spzx.manager.service.lmpl;

import com.dyw.spzx.manager.mapper.ProductUnitMapper;
import com.dyw.spzx.manager.service.ProductUnitService;
import com.dyw.spzx.model.entity.product.ProductUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductUnitServiceImpl implements ProductUnitService {

    @Autowired
    private ProductUnitMapper productUnitMapper;

    // 查询所有商品单位
    @Override
    public List<ProductUnit> findAll() {
        List<ProductUnit> productUnitList = productUnitMapper.selectAll();
        return productUnitList;
    }
}
